import perso.*;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author vendome
 */
public class HelloPersonne {
  public static void main (String[] args)
	{
          Personne[] p=new Personne[3];
          p[0] = new Personne("Jayce",21);
          p[1]=new Etudiant("Titi",21,3.0f); 	  
          p[2]=new Enseignant("Pinel",50,10); 
          
          for(int i=0;i<3;i++)
          {
              System.out.println(p[i].toString());
                      
          }
	}  
}
